#include "data_preprocess.h"



DataPreProcessNode::DataPreProcessNode()
: Node("data_preprocess_node"), count_(0)
{
  publisher_ = this->create_publisher<std_msgs::msg::String>("topic", 10);
  timer_ = this->create_wall_timer( 500ms, std::bind(&DataPreProcessNode::timer_callback, this));
}



void DataPreProcessNode::timer_callback()
{
  auto message = std_msgs::msg::String();
  message.data = "Hello, world! " + std::to_string(count_++);
  RCLCPP_INFO(this->get_logger(), "Publishing: '%s'", message.data.c_str());
  publisher_->publish(message);
}